<div id="tabs" class="tabs">
    <ul>
        <li><a href="#tabs-1">Alias</a></li>
        <li><a href="#tabs-2">Pre-Etiquetas</a></li>
    </ul>
    <div id="tabs-1" class="form">   
        <?php
        $form = $this->beginWidget('GxActiveForm', array(
            'id' => 'alias-form',
            'enableAjaxValidation' => true,
                ));
        ?>
        <p class="note">
<?php echo Yii::t('app', 'Campos con '); ?> <span class="required">*</span> <?php echo Yii::t('app', ' son requeridos'); ?>.
        </p>

<?php echo $form->errorSummary($model); ?>

        <div class="row">
            <?php echo $form->labelEx($model, 'ALSNOMBRE', array('class' => 'label_info')); ?>
            <?php echo $form->textArea($model, 'ALSNOMBRE', array('maxlength' => 1000, 'class' => 'Ctextarea')); ?>
<?php echo $form->error($model, 'ALSNOMBRE'); ?>
        </div><!-- row -->
        <div class="row">
            <?php echo $form->labelEx($model, 'ALSAYUDA', array('class' => 'label_info')); ?>
            <?php echo $form->textArea($model, 'ALSAYUDA', array('maxlength' => '4000', 'class' => 'Ctextarea')); ?>
<?php echo $form->error($model, 'ALSAYUDA'); ?>
        </div><!-- row -->
        <div style=" display: inline;" >
            <div class="row" style=" width: 49%; float:left;">
                <?php echo $form->labelEx($model, 'LABELVISIBLE', array('class' => 'label_info', 'style' => 'float:left;width:70%')); ?>
                <?php echo $form->checkBox($model, 'LABELVISIBLE'); ?>
<?php echo $form->error($model, 'LABELVISIBLE'); ?>
            </div><!-- row -->
            <div class="row" style=" width: 49%; float:right;">
                <?php echo $form->labelEx($model, 'SOLOLECTURA', array('class' => 'label_info', 'style' => 'float:left;width:80%')); ?>
                <?php echo $form->checkBox($model, 'SOLOLECTURA'); ?>
<?php echo $form->error($model, 'SOLOLECTURA'); ?>
            </div><!-- row -->
            <div style="clear:both;"></div>
        </div>
        <div style=" display: inline;" >
            <div class="row" style=" width: 49%; float:left;">
                <?php echo $form->labelEx($model, 'ALSOBLIGATORIO', array('class' => 'label_info', 'style' => 'float:left;width:70%')); ?>
                <?php echo $form->checkBox($model, 'ALSOBLIGATORIO'); ?>
<?php echo $form->error($model, 'ALSOBLIGATORIO'); ?>
            </div><!-- row -->
            <div style="clear:both;"></div>
        </div>
        <div style=" display: inline;" >
            <div class="row" style=" width: 49%; float:left; text-align: center;">
                <?php echo $form->labelEx($model, 'ALSFECHACREACION', array('class' => 'label_info')); ?>
                <?php echo $form->textField($model, 'ALSFECHACREACION', Array('disabled' => true, 'class' => 'CfechaT')); ?>
<?php echo $form->error($model, 'ALSFECHACREACION'); ?>
            </div><!-- row -->
            <div class="row" style=" width: 49%; float: right; text-align: center;" >
                <?php echo $form->labelEx($model, 'ALSFECHAACTUALIZACION', array('class' => 'label_info')); ?>
                <?php echo $form->textField($model, 'ALSFECHAACTUALIZACION', Array('disabled' => true, 'class' => 'CfechaT')); ?>
<?php echo $form->error($model, 'ALSFECHAACTUALIZACION'); ?>
            </div><!-- row -->
            <div style="clear:both;"></div>
        </div>
        <div class="center-submit">
            <?php
            if (is_numeric($_GET["campo"]))
                echo CHtml::hiddenField('campo_id', $_GET["campo"]);
            echo GxHtml::submitButton(Yii::t('app', 'Guardar'), array('class' => 'add_input'));
            ?>
        </div>
        <?php
        $this->endWidget();
        ?>
    </div><!-- form -->
    <div id="tabs-2" class="form">
        <div class="center">
            <?php
            if (is_numeric($model->ALSID))
                echo CHtml::link('<label class="puntero">Crear o editar Pre-etiquetas</label>', array('/aliaset/admin', 'campo' => $model->ALSID), array('title' => GxHtml::encode(GxHtml::valueEx($model)), 'class' => 'buttonA'));
            ?>
        </div>
        <?php
        if (is_numeric($model->ALSID)) {
            echo '<div class="titulo-lista"><h4>Ordén pre-etiquetas</h2></div>';
            AliasController::actioncargar_lista($model->ALSID);
            echo '<div  class="center-submit" >' . GxHtml::button(Yii::t('app', 'Guardar Cambios'), array('class' => 'add_input', 'onclick' => 'save_order(2,' . $model->ALSID . ');')) . "</div>";
        }
        ?>
    </div>
</div>
<div class="dialog-message">
    <p class="dialog-content">
    </p>
</div>